﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SwertressSMS.helper
{
    class FormHelper
    {
        public static void showForm(System.Windows.Forms.Form frm, bool showModal) 
        {
            if (showModal == false)
            {
                frm.Show();
            }
            else
            {
                if (showModal == true)
                {
                    frm.ShowDialog();
                }
            }
        }
        public static void hideForm(System.Windows.Forms.Form frm) { frm.Hide(); }
        public static void closeForm(System.Windows.Forms.Form frm) { frm.Close(); frm.Dispose(); }        
    }
}
